let EmpireStore = require("./dbSync").Game.EmpireStore
let toTable = require("/mnt/my/hwx/vhost/study/study/table.js")

// /home/hwx/下载/test.xlsx
async function test(arrs) {
	for (let i = 0; i < arrs.length; i++) {
		let store = EmpireStore.build(arrs[i], {isNewRecord: false})
		await store.save()
	}
}

function getData() {
	let d = require("xlsx").readFile("/home/hwx/下载/test.xlsx")
	// 
	let data = d.Sheets["工作表2"]
	let res = []
	// console.log(data)
	for (let s = 3; s < 20; s++) {
		const id = data["D" + s].v
		const val = data["C" + s].v
		res.push({
			id,
			val
		})
	}
	// console.log(res)
	return res
}
// getData()